home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d19 / pcbem10u.arc / PCBEMII.DOC < prev    next >
Text File  |  1991-04-28  |  25KB  |  770 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.      PCBEM II Event Manager Version 1.0
  18.  
  19.  
  20.  
  21.  
  22.  
  23.      March 19th, 1991
  24.  
  25.  
  26.  
  27.  
  28.      (C)opyright 1991 By David Chamberlain
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.      TABLE OF CONTENTS
  58.  
  59.  
  60.  
  61.  
  62.  
  63.      Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . .   ii
  64.  
  65.      Introduction  . . . . . . . . . . . . . . . . . . . . . . . . . . .  1
  66.  
  67.      PCBEM II Version 1.0  . . . . . . . . . . . . . . . . . . . . . . .  2
  68.      Event Table   . . . . . . . . . . . . . . . . . . . . . . . . . . .  4
  69.        Record Format   . . . . . . . . . . . . . . . . . . . . . . . . .  4
  70.        Rules   . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  4
  71.      Messages  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  5
  72.      Error Levels  . . . . . . . . . . . . . . . . . . . . . . . . . . .  7
  73.      Examples  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  8
  74.        Single PCBoard Node   . . . . . . . . . . . . . . . . . . . . . .  9
  75.        Multiple PCBoard Nodes  . . . . . . . . . . . . . . . . . . . .   10
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.      PCBEM Event Manager V1.0                                           
  110.  
  111.  
  112. _________________________________ Preface _________________________________
  113.  
  114.  
  115. ___________________________ Naming Conventions ____________________________
  116.  
  117.      The  PCBEvent Manager is distributed using the  filenaming  convention 
  118. of:  PCBEMvvx.ZIP. vv refers to the version number i.e 10 for version  1.0. 
  119. The x refers to a letter nameing of the type of code A or a for Alpha Code,
  120. B for Beta Code, U for Unregistered and R for Registered.
  121.  
  122. _______________________________  Warranty  ________________________________
  123.  
  124.      The PCBEvent Manager is provided "as is" without warranty of any kind,
  125. either expressed or implied. The only guarantee that I will make is that it 
  126. will  occupy disk space and that it is running on my system. If you  decide 
  127. to use PCBEvent Manager, you do so at your own risk. In no event will the 
  128. author or any distribution sites be held liable to anyone for any  damages, 
  129. including  but  not limited to, any lost profits, lost  savings,  or  other 
  130. incidental  or consequential damages arising from your use or inability  to 
  131. use PCBEvent Manager.
  132.  
  133. _______________________________ Legal Stuff _______________________________
  134.  
  135.      PCBEM Event Manager  is  the  (C)opyrighted  property  of   David   R. 
  136. Chamberlain. You are not authorized to modify, merge, reverse assemble,  or 
  137. reverse  compile the program, it's documentation, or the  distribution  ZIP 
  138. file. You may terminate this agreement by destroying all copies of  PCBEM 
  139. Event Manager, it's documenation, and distribution ZIP file. David R. 
  140. Chamberlain may terminate your license if you fail to comply with the terms
  141. and conditions of this agreement.
  142.  
  143. PCBoard  is  (C)opyright and Trademark of Clark Development  Company,  Orem 
  144. Utah.
  145.  
  146. ________________________________ Shareware ________________________________
  147.  
  148.      Since  you have likely read statements under the  heading  "Shareware" 
  149. often,  I  need not go into the idea again. Simply be aware  that  PCBEM 
  150. Event Manager is shareware ($15.00 suggested), the registered version is no 
  151. different  except  in the title screen and the display lines. Any and all 
  152. registered users may download any update that is made to the program for as 
  153. long as they use the program. Registered users are entitled to 1 Disk with 
  154. the current PCBEM Event Manager program and 1 Update Disk when they upgrade.
  155.  
  156.      All Registered Users will receive PCBEM 2.0 when released. Features
  157. currently planned for version 2.0 are: Menu Driven Interface for defining
  158. event times and days, Next event times, Node for each event, and a built in
  159. editor for writing your event batch files. 
  160.      To  register  your copy of PCBEM follow the directions in REGISTER.DOC
  161.  
  162.  
  163.  
  164. PCBEM Event Manager Version 1.0                                          ii
  165.  
  166. ______________________________ INTRODUCTION _______________________________
  167.  
  168.  
  169.      The PCBEM Event Manager is a collection of batch files, methods and 
  170. ideas of the author. It is intended to make running a PCBoard BBS as pain
  171. -less as is possible, especially in a multi-node environment. It provides 
  172. the means to:
  173.  
  174.      1.  Have multiple system events.
  175.  
  176.      2.  Coordinate system events between multiple nodes.
  177.  
  178.      3.  Schedule system maintenance without User interference.
  179.  
  180.      4.  Schedule system maintenance without Sysop commitment.
  181.  
  182.      PCBEM Event Manager was developed for PCBoard 14.5a/E3, however, it 
  183. is  believed  to  be comaptible with all 14.x PCBoard  versions.  The  only 
  184. dependence  on PCBoard formats is the location of the event time  and  node 
  185. numbers in the PCBOARD.DAT file.
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.  
  207.  
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217.  
  218.  
  219.      PCBEM Event Manager V 1.0                                            1
  220.  
  221.  
  222.      PCBEM  is  a  utility program which provides the  ability  to  have
  223.      multiple events on a PCBoard bulletin  board system. A table of events
  224.      is created  specifying the time of each event and  the day of the week
  225.      on  which the event occurs. PCBEM is  then placed  in the EVENT.SYS
  226.      file as the first program to execute in the EVENT. PCBEM then:
  227.  
  228.      1.  Reads in the Event Table.
  229.      2.  Locates the current event.
  230.      3.  Determines the next event.
  231.      4.  Updates the PCBOARD.DAT file for the next event.
  232.      5.  Returns to  the EVENT batch  file passing an ErrorLevel indicative
  233.          of the current event.
  234.      PCBEM also waits for:
  235.      1.  An event to activate.
  236.      2.  An event to complete.
  237.      3.  all nodes to deactivate.
  238.      4.  The Sysop to acknowledge the startup of system maintenance. 
  239.       
  240.      The format of the PCBEM Event Manager is:
  241.  
  242.      PCBEM {COMMANDLINE OPTION}
  243.  
  244.      Where:
  245.  
  246.      Commandline option is one of the following options:
  247.  
  248.     PCBEM CHANGE d:\pcb (It is very important to leave out the \ at the end 
  249. This  option must be used 1st in the EVENT.SYS  file  if you want to change
  250. the time of your next event. All other options are optional and deal with 
  251. Logging the event to a log file, waiting for  other nodes and waiting for 
  252. system maintenance by the SysOp.
  253.  
  254.      PCBEM     [ LOG(d:\path) ]  [ PCBOARD(d:\path) ]  [ END            ]
  255.                                                        [ EVENT(mm c)    ]
  256.                                                        [ SYSOP(mm ss c) ]
  257.                                                        [ WAIT(mm)       ]
  258.  
  259.      Where:
  260.  
  261.      END               Signals the end of the event. The  Event Active Flag
  262.                        and the Node Down Counter are  reset (set  to 0) and
  263.                        PCBEM terminates passing an Errorlevel 0.
  264.  
  265.  
  266.  
  267.  
  268.  
  269.     
  270.  
  271.  
  272.  
  273.  
  274.      PCBEM Event Manager V 1.0                                            2
  275.  
  276.  
  277.      EVENT(mm c)       The  Node  Down Counter  is incremented  by  1, then
  278.                        PCBEM  loops  until  the NODE Down Counter equals
  279.                        "c". When the Node Down Counter equals "c" the event
  280.                        flag  is  set and  PCBEM  terminates  passing  an
  281.                        Errorlevel 0  indicating the  event is  to start. If
  282.                        the Node Down Counter does not equal "c" within "mm"
  283.                        minutes the  Node Down Counter is decremented  by 1,
  284.                        then PCBEM  terminates passing  an  Errorlevel 16
  285.                        indicating the event should be aborted. active.
  286.  
  287.  
  288.      LOG(d:\path)      Specifies  the path (drive and  subdirectory) of the
  289.                        PCBEVENT.LOG   file.   The    current    drive   and
  290.                        subdirectory  is  used  if  this  parameter  is  not
  291.                        specified. If the PCBEVENT.LOG file does  not  exist
  292.                        it is created.  PCBEM uses this file to serialize
  293.                        operations between all nodes and to provide a log of
  294.                        all activities. The path specified  must be the same
  295.                        for all nodes.
  296.  
  297.      PCBOARD(d:\path)  Specifies the  path (drive  and subdirectory) of the
  298.                        PCBOARD.DAT file. The current drive and subdirectory
  299.                        is used if this parameter is not specified.
  300.  
  301.      SYSOP(mm ss c)    The Node  Down Counter  is  incremented  by  1, then
  302.                        PCBEM loops until  the NODE  Down Counter  equals
  303.                        "c". When the Node Down Counter equals "c" the event
  304.                        flag  is set and PCBEM issues messages asking the
  305.                        Sysop  whether system  maintenance should  begin  or
  306.                        PCBoard should  be reactivated, then PCBEM  loops
  307.                        waiting  for  the Sysop  to respond.  If  the  Sysop
  308.                        responds  indicating  PCBoard should  be reactivated
  309.                        the Event Flag and the Node  Down Counter  are reset
  310.                        (set  to  0)  and  PCBEM  terminates  passing  an
  311.                        Errorlevel  0.  If  the  Sysop  responds  indicating
  312.                        system  maintenance is to  begin PCBEM terminates
  313.                        passing  an Errorlevel 4.  If  the  Sysop  does  not
  314.                        respond within "ss"  minutes the  Event Active  Flag
  315.                        and Node  Down Counter  are  reset  (set  to  0) and
  316.                        PCBEM terminates passing an  Errorlevel  16.  Now
  317.                        back to  the beginning, if the Node Down Counter did
  318.                        not equal "c"  within  "mm"  minutes  the  Node Down
  319.                        Counter   is  decremented   by  1,   then   PCBEM
  320.                        terminates  passing  an Errorlevel 16 indicating the
  321.                        event should be aborted.
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.      PCBEM Event Manager V 1.0                                            3
  330.  
  331.  
  332.  
  333.      WAIT(mm)          The Node  Down Counter  is  incremented by  1,  then
  334.                        PCBEM  loops until  the Event Active Flag is set.
  335.                        When the  Event  Active Flag  is  set PCBEM waits
  336.                        until it is reset (set to 0) then terminates passing
  337.                        an Errorlevel  0 indicating  the event has ended. If
  338.                        the  Event Flag is  not set within  "mm" minutes the
  339.                        Node Down Counter is decremented by 1, then PCBEM
  340.                        terminates passing  an Errorlevel 16  indicating the
  341.                        event has aborted.
  342.  
  343.      The following parameters may also be specified, however, they are only
  344.      intended for testing and debugging purposes. They  serve no productive
  345.      purpose.
  346.  
  347.  
  348.      DISPLAY   Displays the status of the IACA bytes.
  349.  
  350.      RESET     Resets both IACA bytes to x'00'.
  351.  
  352.      SET(x y)  Sets the 1st IACA byte to x and the 2nd IACA byte to y.
  353.  
  354.  
  355.  
  356.      EVENT TABLE
  357.  
  358.  
  359.      The Event Table is contained in  the PCBEVENT.DAT file. Each record in
  360.      the file  represents  1  event  and  a maximum of  15  events  may  be
  361.      specified.  The records  are each made  up of 2 fields, the  1st field
  362.      indicates the time  of  the  event and  the second field indicates the
  363.      days of  the week on  which the event is to occur. The records must be
  364.      kept in order by time and within time by the days of the week.
  365.  
  366.      The time is specified based on a 24 hour clock 00:00 to 23:59. Leading
  367.      zeroes are required for the hours (i.e. 1:00AM is 01:00 not 1:00).
  368.  
  369.      The  days  of  the  week are  expressed  numerically  where  1=Sunday,
  370.      2=Monday, 3=Tuesday, 4=Wednesday, 5=Thursday, 6=Friday and 7=Saturday.
  371.  
  372.  
  373.  
  374.  
  375.  
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.      PCBEM Event Manager V 1.0                                            4     
  385.  
  386.  
  387.      Record Format
  388.  
  389.      The Event Table may  be created using any ASCII editor such  as EDLIN.
  390.      The  following  example  illustrates the  contents of the PCBEVENT.DAT
  391.      file.
  392.  
  393.      Time  Days of Week          Comments (not part of record!!)
  394.  
  395.      04:00,1234567               ; Event at 04:00 Sunday through Saturday
  396.      07:15,23456                 ; Event at 07:15 Monday through Friday
  397.      12:00,23456                 ; Event at 12:00 Monday through Friday
  398.  
  399.      In the above example PCBEM  would return an ErrorLevel of 1 for the
  400.      event at  04:00, 2  for the  event  at 07:15, and 3 for the  event  at
  401.      12:00.
  402.  
  403.      Two different events  may  be  specified for  the  same  time  but  on
  404.      different days. This is illustrated by the following example.
  405.  
  406.      Time  Days of Week          Comments (not part of record!!)
  407.  
  408.      04:00,17                    ; Event at 04:00 Sunday and Saturday
  409.      04:00,23456                 ; Event at 04:00 Monday through Friday
  410.      07:15,23456                 ; Event at 07:15 Monday through Friday
  411.      12:00,23456                 ; Event at 12:00 Monday through Friday
  412.  
  413.      In the above example PCBEM would return an  ErrorLevel of 1 for the
  414.      event  at 04:00 on Sunday and Saturday, 2  for  the event  at 04:00 on
  415.      Monday through Friday,  3 for the event at 07:15, and 4 for  the event
  416.      at 12:00.
  417.  
  418.  
  419.      Rules
  420.  
  421.  
  422.      1.  Comments are not permitted.
  423.  
  424.      2.  The maximum number of events which may be specified are 15.
  425.  
  426.      3.  Each day of the week must be specified at least once.
  427.  
  428.      4.  The records  must be kept in order by time  and within time by day
  429.          of the week.
  430.  
  431.  
  432.  
  433.  
  434.  
  435.  
  436.  
  437.  
  438.  
  439.      PCBEM Event Manager V 1.0                                            5
  440.  
  441.  
  442.      MESSAGES
  443.  
  444.      When using the Commandline CHANGE:     
  445.  
  446.      The following messages may be issued by PCBEM:
  447.  
  448.      PCBEM Version 1.0 Started
  449.  
  450.      PCBEM Version 1.0 Ended
  451.  
  452.      Unable to Determine the Day of the Week for Current Event
  453.  
  454.      Unable to Locate Current Event in Event Table
  455.  
  456.      Current Event is: ddddddddd at hh:mm
  457.  
  458.      Unable to Locate Next Event in Event Table
  459.  
  460.      Unable to Determine the Day of the Week for Next Event
  461.  
  462.      Next Event is: ddddddddd at hh:mm
  463.  
  464.      d:\path\PCBOARD.DAT Updated for Next Event
  465.  
  466.      Invalid File Path Specified
  467.  
  468.      PCBoard Data File d:\path\PCBOARD.DAT Not Found
  469.  
  470.      PCBEvent Data File d:\path\PCBEVENT.DAT Not Found
  471.  
  472.      PCBEvent Data File Events Exceed Maximum of 15
  473.  
  474.      PCBEvent Data File Only Defines 1 Event
  475.  
  476.      PCBEvent Data File Out of Order
  477.  
  478.      PCBoard Data File Elements Exceed Expected Maximum
  479.  
  480.      When Using the Node, Wait, SysOp Functions  
  481.  
  482.      PCBEM  uses  the  first   2   bytes   of   the   Inter-Applications
  483.      Communications Area of DOS to communicate between PCBoard nodes. The 2
  484.      bytes are located at "4F0" and "4F1" Hex in the IACA.  The 1st byte is
  485.      used as  a  flag  to indicate whether  or not  the  event is currently
  486.      active. The 2nd byte  is used as a counter to determine when all nodes
  487.      are down (not  active). This technique  sets  up  a  primary/secondary
  488.      relationship between the nodes, where, the  primary node  performs the
  489.      event activities while  the secondary node(s) wait  for the  event  to
  490.      complete.
  491.  
  492.  
  493.  
  494.      PCBEM Event Manager V 1.0                                            6
  495.  
  496.  
  497.        PCBEM Version 1.0 Started
  498.  
  499.        PCBEM Version 1.0 Ended
  500.  
  501.        Node n - Waiting for Event StartUp
  502.  
  503.        Node n - Event StartUp Not Detected
  504.  
  505.        Node n - Event Completion Detected
  506.  
  507.        Node n - Waiting for Secondary Nodes
  508.  
  509.        Node n - All Nodes Not Down, Event Aborted
  510.  
  511.        Node n - Waiting for SYSOP: Ctrl+Home = Activate PCBoard
  512.  
  513.                                    Ctrl+End  = SYSOP Maintenance
  514.  
  515.        Node n - Activate PCBoard Selected
  516.  
  517.        Node n - Sysop Maintenance Selected
  518.  
  519.        Node n - No Response From Sysop
  520.  
  521.        Node n - Event Started
  522.  
  523.        Node n - Event Ended
  524.  
  525.        Main Event is: Active/Not Active
  526.  
  527.        Node Count is: n
  528.  
  529.        Invalid Parameter Specified
  530.  
  531.        Insufficient Parameter(s) Specified
  532.  
  533.        Invalid File Path Specified
  534.  
  535.        PCBoard Data File d:\path\PCBOARD.DAT Not Found
  536.  
  537.        Minutes Must Be 1 to 60
  538.  
  539.  
  540.        Number of Nodes Must Be 1 to 9
  541.  
  542.        Unrecoverable error -- ERR
  543.  
  544.  
  545.      ERROR LEVELS
  546.  
  547.      1-15  The index to the event table entry of the current event.
  548.  
  549.      PCBEM Event Manager V 1.0                                            7
  550.  
  551.  
  552.      16    The PCBEM program has aborted due to an error.  The error is
  553.            described  in  the   messages   issued  by  the  program  during
  554.            processing.
  555.  
  556.  
  557.      EXAMPLES
  558.  
  559.  
  560.      A  simple example of the use of PCBEM is the situation  where it is
  561.      desired to have 2 events at different times during the day, the events
  562.      will be  called EVENT1.BAT and EVENT2.BAT. Assume EVENT1 is to run  at
  563.      2:00 AM and EVENT2 is to run at  2:00  PM.  Additionally, EVENT1 is to
  564.      run on all 7 days of the week, however,  EVENT2 should only run Monday
  565.      through Friday. The PCBEVENT.DAT file would be setup as follows:
  566.  
  567.      02:00,1234567
  568.      14:00,23456
  569.  
  570.      Three EVENT files would then be set up as follows:
  571.  
  572.      EVENT.SYS                    EVENT1.BAT                 EVENT2.BAT
  573.  
  574.      echo off                     echo off                   echo off
  575.      c:                           c:                         c:
  576.      cd /pcb                      cd /pcb                    cd /pcb
  577.      pcbem change c:\pcb          + + + + +                  + + + + +
  578.      if errorlevel 16 board       + what+ +                  + what+ +
  579.      if errorlevel 2 event2       + +ever +                  +  ever +
  580.      if errorlevel 1 event1       + + + + +                  + + + + +
  581.      board                        board                      board
  582.  
  583.      Note: PCBSETUP must  be  used to set the initial  event time to either
  584.            2:00 AM  or 2:00 PM. The  PCBOARD.DAT event time must match 1 of
  585.            the PCBEVENT.DAT times when PCBEM.EXE is run.
  586.  
  587.      EVENT.SYS would  be invoked by PCBoard at  the time indicated  by  the
  588.      PCBOARD.DAT file. PCBEM would then match  the PCBOARD.DAT time with
  589.      the entry  in the PCBEVENT.DAT file to determine the current event and
  590.      the ErrorLevel would  be set to the matching entries index (i.e. 1 for
  591.      02:00  and 2 for  14:00). PCBEM would then  search the PCBEVENT.DAT
  592.      file for the next event time and set the time in the PCBOARD.DAT  file
  593.      accordingly.
  594.  
  595.      PCBEM then  terminates  passing the ErrorLevel  set by the  current
  596.      event entry. The "if errorlevel" statements then determine which event
  597.      batch file is to be executed or in the case of an error what should be
  598.      done, in the example PCBoard is re-activated.
  599.  
  600.  
  601.  
  602.  
  603.  
  604.      PCBEM Event Manager V 1.0                                            8
  605.  
  606.  
  607.      Single PCBoard Node
  608.  
  609.      In the  single  node PCBoard environment PCBEM may be used to  hold
  610.      the bulletin board  system idle for  a  period of time until the Sysop
  611.      arrives to take some  action. One reason  for doing this  would be for
  612.      normally scheduled system maintenance.
  613.  
  614.      An  event  is  to be scheduled to hold  PCBoard idle until  the  Sysop
  615.      indicates  whether  PCBoard should  be  reactivated or  DOS  should be
  616.      invoked to perform system maintenance. If  the Sysop  does not respond
  617.      within 30 minutes the bulletin board should be reactivated. This would
  618.      be setup as follows:
  619.  
  620.      1.  Using PCBSETUP set  an event for the normal Sysop maintenance time
  621.          and do not allow the event time to slide.
  622.  
  623.      2.  Setup an EVENT.SYS file as follows:
  624.  
  625.          echo off
  626.          c:
  627.          cd /pcb
  628.          pcbem log(c:\main) sysop(1 30 1)
  629.          if errorlevel 16 board
  630.          if errorlevel 4 go2dos
  631.          board
  632.  
  633.      3.  EVENT.SYS would be invoked by PCBoard at the time indicated by the
  634.          PCBOARD.DAT file.
  635.  
  636.      4.  PCBEM displays a  message and  allowing  the Sysop  to  respond
  637.          indicating whether PCBoard should be reactivated or control should
  638.          be passed to DOS for system maintenance activities.
  639.  
  640.      5.  If  the Sysop  does not  respond  within the specified  30 minutes
  641.          PCBoard would be reactivated.
  642.  
  643.  
  644.      Multiple PCBoard Nodes
  645.  
  646.  
  647.      PCBEM may be used to coordinate PCBoard events between each node of
  648.      the  bulletin board system.  This can prevent  file  sharing  problems
  649.      during the execution of the events.
  650.  
  651.      Additionally,  PCBEM may be used  to hold  multiple  nodes  of  the
  652.      bulletin board system in an idle state for a period  of time until the
  653.      Sysop arrives  to take some action. One reason for doing this would be
  654.      for normally scheduled system maintenance.
  655.  
  656.  
  657.  
  658.  
  659.      PCBEM Event Manager V 1.0                                           9
  660.  
  661.      On a 2 node PCBoard an event  is to be scheduled to hold both nodes of
  662.      the bulletin board  idle  until  the Sysop  indicates  whether PCBoard
  663.      should be reactivated  or  DOS  should  be  invoked to perform  system
  664.      maintenance. If the Sysop  does  not  respond within  30  minutes both
  665.      nodes the bulletin board  should be reactivated.  This would be  setup
  666.      as follows:
  667.  
  668.      1.  On  each  node using  PCBSETUP set  an  event  during  which  this
  669.          processing is to occur. Do not allow the event time to slide.
  670.  
  671.      2.  Setup an EVENT.SYS file for each node as follows:
  672.  
  673.      Node #1                                 Node #2
  674.      EVENT.SYS                               EVENT.SYS
  675.      echo off                                echo off
  676.      c:                                      c:
  677.      cd /pcb                                 cd /pcb2
  678.      pcbem log(c:\main) sysop(5 30 2)        pcbem log(c:\main) wait(5)
  679.      if errorlevel 16 board1                 board2
  680.      if errorlevel 4 go2dos
  681.      board1
  682.  
  683.      3.  EVENT.SYS would be invoked by PCBoard at the time indicated by the
  684.          PCBOARD.DAT file within each node.
  685.  
  686.      4.  On  node  #1  PCBEM would wait for 5 minutes for  the Node Down
  687.          Counter to reach 2, then the  Event Active Flag would be set and a
  688.          message  would  be   displayed   allowing  the  Sysop  to  respond
  689.          indicating whether PCBoard should be reactivated or control should
  690.          be  passed to DOS for system  maintenance activities. If  the Node
  691.          Down  Counter did  not reach  2 within 5 minutes PCBEM  would
  692.          terminate passing a 16 Errorlevel.
  693.  
  694.      5.  On node #2 PCBEM would wait 5 minutes for the Event Active Flag
  695.          to be  set, then would wait until the Event Active  Flag is reset.
  696.          If the Event  Active Flag is  not set  in the specified 5  minutes
  697.          PCBEM would terminate passing a 16 Errorlevel.
  698.  
  699.      6.  Back  on  node  #1  if  the  Sysop  indicated  PCBoard  should  be
  700.          reactivated or did not respond within  30 minutes  PCBEM  would
  701.          reset the Event Active  Flag  and Node Down Counter then terminate
  702.          with either a 0 (reactivate) or 16 (no response) Errorlevel.
  703.  
  704.      7.  Back on node #2 PCBEM would terminate  passing  a 0 Errorlevel
  705.          after the Event Active Flag was reset by node #1.
  706.  
  707.      8.  If the Sysop responded indicating  control should be passed to DOS
  708.          for  system  maintenance  activities PCBEM  (on node  #1) would
  709.          terminate  passing  a  4   Errorlevel.  It  is  then  the  Sysop's
  710.          responsibility to reset the Event Active Flag  and  the  Node Down
  711.          Counter  to allow  node #2 to reactivate.  This would  be  done by
  712.          issuing the following PCBEM command from the DOS prompt:
  713.  
  714.      PCBEM Event Manager V 1.0                                           10
  715.  
  716.  
  717.          PCBEM LOG(C:\MAIN) PCBOARD(C:\PCB) END
  718.  
  719.      The uses of PCBEM Event Manager are endless and I could go on forever
  720. explaining the different uses. PCBEM has been tested for several months on
  721. my system and one other and has been found to work with no problems. If you
  722. experience a problem please report them to me and try to include your event
  723. files and such so I may better serve you....
  724.  
  725.      For a temporary time my BBS will be Off-Line but I can be contacted by
  726. leaving me a message on Salt Air or On The Labyrinth BBS at 1-818-447-6957
  727.  
  728.  
  729. PCBEM Event Manager V 1.0                                                11       
  730.  
  731.  
  732.  
  733.  
  734.  
  735.  
  736.  
  737.  
  738.  
  739.  
  740.  
  741.  
  742.  
  743.  
  744.  
  745.  
  746.  
  747.  
  748.  
  749.  
  750.  
  751.  
  752.  
  753.  
  754.  
  755.  
  756.  
  757.  
  758.  
  759.  
  760.  
  761.  
  762.  
  763.  
  764.  
  765.  
  766.  
  767.  
  768.  
  769.  
  770.